import { Redirect } from 'umi'

export default props => {
  console.log(props);
  const isLogin = false;
  if (!isLogin) return <div>{props.children}</div>;
  return <Redirect to="/login" />;
}
